{yun:}include file="$wapstyle/member/theader.htm"{/yun}
<script type="text/javascript">
function reply(id){
	$("#id").val(id);
	content=$("#reply").html();  
	layer.open({
		type : 1,
		title :'回复',
		offset: [($(window).height() - 300)/2 + 'px', ''],
		closeBtn : [0 , true],
		border : [10 , 0.3 , '#000', true],
		area : ['400px','auto'],
		content:content
	});
}
function checkreply(){
	if($("#content").val()==''){
		layermsg("回复内容不能为空！");return false;
	}
}
</script>
<section>
<div class="wap_member_tit wap_member_titw30">
<ul>
<li {yun:}if $smarty.get.status==""{/yun}class="wap_member_tit_cur"{yun:}/if{/yun}><a href="index.php?c=message">全部</a></li>
<li {yun:}if $smarty.get.status=="2"{/yun}class="wap_member_tit_cur"{yun:}/if{/yun}><a href="index.php?c=message&status=2">已回复</a></li>
<li {yun:}if $smarty.get.status=="1"{/yun}class="wap_member_tit_cur"{yun:}/if{/yun}><a href="index.php?c=message&status=1">未回复</a></li>
</ul>
</div>
</section>
<section>
<div class="wap_member_job_show">
{yun:}foreach item=v from=$rows{/yun}
<div class="wap_member_msg ">
<div class="yun_m_job_list_zt">用户名：{yun:}$v.nickname{/yun}</div>
<div class="yun_m_job_list_zt">联系电话：{yun:}$v.phone{/yun}</div>
<div class="yun_m_job_list_zt">留言内容：{yun:}$v.content{/yun}</div>
<div class="yun_m_job_list_zt">留言时间：{yun:}$v.ctime|date_format:"%Y-%m-%d %H:%M:%S"{/yun}</div>
{yun:}if $v.status==2{/yun}<div class="yun_m_job_list_hf">我的回复：{yun:}$v.reply{/yun}</div>{yun:}/if{/yun}
<div class="yun_member_bth" >
<a class="yun_member_subpx" href="javascript:void(0);" onclick="layer_del('确定删除该咨询留言？','index.php?c=message&del={yun:}$v.id{/yun}');" >删除</a> 
{yun:}if $v.status==1{/yun}<a href="javascript:void(0);" onclick="reply('{yun:}$v.id{/yun}');" class="yun_member_subpx " style="border-left: 1px solid #f2f2f2;">回复</a>{yun:}/if{/yun}
</div>
</div>
{yun:}foreachelse{/yun}
<div class="wap_member_no">暂无相关信息</div>
{yun:}/foreach{/yun}
<div class="pages">{yun:}$pagenav{/yun}</div>

</div>
</section>
</div>
<div class="yun_wap_addresume_box" id="reply" style="display: none;"> 
<form name="myform" method="post" action="index.php?c=message&reply=1">
<div class="yun_wap_addresume_box_group" style="min-width:260px">
<textarea id="content" name="content" class="yun_wap_textarea" ></textarea>
</div>
<div class="yun_wap_addresume_box_group">
<input type="hidden" id="id" name="id" value="" />
<input type="submit" value="提交" class="reinputText2">
</div>
</form>
</div>
{yun:}include file="$wapstyle/footer.htm"{/yun}